# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=perl-object-event
pkgver=1.23
pkgrel=10
pkgdesc="Perl/CPAN Module Object::Event"
arch=(any)
url="https://search.cpan.org/dist/Object-Event/"
license=("GPL" "PerlArtistic")
depends=(perl)
source=("https://search.cpan.org/CPAN/authors/id/E/EL/ELMEX/Object-Event-$pkgver.tar.gz")
sha256sums=('ab6bb80508f4fddaf2d51b20ca876aab038582a86b5228e6435411348af53c82')

build() {
  cd "$srcdir"/Object-Event-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/Object-Event-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
